Friday, July 16, 2021

How to convert from octal to decimal

 

How to convert from octal to decimal

A regular decimal number is the sum of the digits multiplied with 10n.

Example #1

137 in base 10 is equal to each digit multiplied with its corresponding 10n:

13710 = 1×102+3×101+7×100 = 100+30+7

Octal numbers are read the same way, but each digit counts 8n instead of 10n.

Multiply each digit of the hex number with its corresponding 8n.

Example #2

37 in base 8 is equal to each digit multiplied with its corresponding 8n:

378 = 3×81+7×80 = 24+7 = 31

Example #3

7014 in base 8 is equal to each digit multiplied with its corresponding power of 8:

70148 = 7×83+0×82+1×81+4×80= 3584+0+8+4 = 3596

Example #4

112 = (1 × 8²) + (1 × 8¹) + (2 × 8⁰) = 74

Octal to decimal conversion table

Octal

base 8

Decimal

base 10

00
11
22
33
44
55
66
77
108
119
1210
1311
1412
1513
1614
1715
2016
3024
4032
5040
6048
7056
10064

 

Decimal to Octal converter ►

No comments:

Post a Comment

GitHub repository using Git Bash command

  To add a project to a GitHub repository using Git Bash command line, you can follow these steps: Create a new repository on GitHub by logg...